package com.ruiyian.bridge.info.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruiyian.bridge.info.domain.SensorWarningLog;

import java.util.List;
import java.util.Map;

/**
 * @author chong
 * @email 673426164@qq.com
 * @create 2022/6/17
 * Desc: 预警日志
 */
public interface SensorWarningLogService extends IService<SensorWarningLog> {

    /**
     * 列表数据查询
     * @param sensorWarningLog
     * @return
     */
    List<SensorWarningLog> list(SensorWarningLog sensorWarningLog);
    /**
     * 处理
     * @param sensorWarningLog
     */
    void deal(SensorWarningLog sensorWarningLog);

    /**
     * 添加超限预警数据
     */
    void addWarnLog();

    /**
     * 统计类型预警
     * @return
     */
    List<Map<String,Object>> countWarnDgree();

    /**
     * 根据传感器类型统计
     * @return
     */
    List<Map<String,Object>> countSensorType();

}
